package com.linjuke.mayouting.biz.ao;

import com.linjuke.mayouting.biz.ao.query.UserQuery;
import com.linjuke.mayouting.biz.dal.dataobject.UserDO;
import com.zjuh.sweet.result.Result;

public interface UserAO {
	
	Result handleLogin(UserDO user);
	
	Result handleLogout();

	Result createUser(UserDO user);
	
	Result deleteUser(int userId);
	
	Result handleIndex();
	
	Result listUsers(UserQuery userQuery);
	
	Result viewUserDetail(int userId);
	
	Result removeRole(int userId, int roleId);
	
}
